package com.cx.ucenter.controller;

import com.cx.jvm.PayService;

import java.util.ServiceLoader;

/**
 * Author:CHENXIAOYI
 * Since:2020/10/26 16:48
 */

public class TestRedisCtrl {

    public static void main(String[] args){

        ServiceLoader<PayService> myServices = ServiceLoader.load(PayService.class);

        for (PayService payService : myServices) {
            payService.showMyService();
        }

    }
}
